package T2;

public class Car extends Vehicle{
    private int loader;

    public Car(){

    }
    public Car(int wheels,double weight,int loader){
        super(wheels,weight);
        this.loader=loader;
        System.out.println("限载人数："+loader);
    }

    public int getLoader() {
        return loader;
    }

    public void setLoader(int loader) {
        this.loader = loader;
    }
}
